/*
 * MIT License
 *
 * Copyright (c) 2023 OrdinaryRoad
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: douyin.proto

// Protobuf Java Version: 3.25.3
package tech.ordinaryroad.live.chat.client.codec.douyin.protobuf;

/**
 * Protobuf type {@code Image}
 */
public final class Image extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:Image)
    ImageOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Image.newBuilder() to construct.
  private Image(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private Image() {
    urlListList_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    uri_ = "";
    avgColor_ = "";
    openWebUrl_ = "";
  }

  @Override
  @SuppressWarnings({"unused"})
  protected Object newInstance(
      UnusedPrivateParameter unused) {
    return new Image();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return Douyin.internal_static_Image_descriptor;
  }

  @Override
  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return Douyin.internal_static_Image_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            Image.class, Builder.class);
  }

  private int bitField0_;
  public static final int URLLISTLIST_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringArrayList urlListList_ =
      com.google.protobuf.LazyStringArrayList.emptyList();
  /**
   * <code>repeated string urlListList = 1;</code>
   * @return A list containing the urlListList.
   */
  public com.google.protobuf.ProtocolStringList
      getUrlListListList() {
    return urlListList_;
  }
  /**
   * <code>repeated string urlListList = 1;</code>
   * @return The count of urlListList.
   */
  public int getUrlListListCount() {
    return urlListList_.size();
  }
  /**
   * <code>repeated string urlListList = 1;</code>
   * @param index The index of the element to return.
   * @return The urlListList at the given index.
   */
  public String getUrlListList(int index) {
    return urlListList_.get(index);
  }
  /**
   * <code>repeated string urlListList = 1;</code>
   * @param index The index of the value to return.
   * @return The bytes of the urlListList at the given index.
   */
  public com.google.protobuf.ByteString
      getUrlListListBytes(int index) {
    return urlListList_.getByteString(index);
  }

  public static final int URI_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private volatile Object uri_ = "";
  /**
   * <code>string uri = 2;</code>
   * @return The uri.
   */
  @Override
  public String getUri() {
    Object ref = uri_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      uri_ = s;
      return s;
    }
  }
  /**
   * <code>string uri = 2;</code>
   * @return The bytes for uri.
   */
  @Override
  public com.google.protobuf.ByteString
      getUriBytes() {
    Object ref = uri_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      uri_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HEIGHT_FIELD_NUMBER = 3;
  private long height_ = 0L;
  /**
   * <code>uint64 height = 3;</code>
   * @return The height.
   */
  @Override
  public long getHeight() {
    return height_;
  }

  public static final int WIDTH_FIELD_NUMBER = 4;
  private long width_ = 0L;
  /**
   * <code>uint64 width = 4;</code>
   * @return The width.
   */
  @Override
  public long getWidth() {
    return width_;
  }

  public static final int AVGCOLOR_FIELD_NUMBER = 5;
  @SuppressWarnings("serial")
  private volatile Object avgColor_ = "";
  /**
   * <code>string avgColor = 5;</code>
   * @return The avgColor.
   */
  @Override
  public String getAvgColor() {
    Object ref = avgColor_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      avgColor_ = s;
      return s;
    }
  }
  /**
   * <code>string avgColor = 5;</code>
   * @return The bytes for avgColor.
   */
  @Override
  public com.google.protobuf.ByteString
      getAvgColorBytes() {
    Object ref = avgColor_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      avgColor_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int IMAGETYPE_FIELD_NUMBER = 6;
  private int imageType_ = 0;
  /**
   * <code>uint32 imageType = 6;</code>
   * @return The imageType.
   */
  @Override
  public int getImageType() {
    return imageType_;
  }

  public static final int OPENWEBURL_FIELD_NUMBER = 7;
  @SuppressWarnings("serial")
  private volatile Object openWebUrl_ = "";
  /**
   * <code>string openWebUrl = 7;</code>
   * @return The openWebUrl.
   */
  @Override
  public String getOpenWebUrl() {
    Object ref = openWebUrl_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      openWebUrl_ = s;
      return s;
    }
  }
  /**
   * <code>string openWebUrl = 7;</code>
   * @return The bytes for openWebUrl.
   */
  @Override
  public com.google.protobuf.ByteString
      getOpenWebUrlBytes() {
    Object ref = openWebUrl_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      openWebUrl_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CONTENT_FIELD_NUMBER = 8;
  private ImageContent content_;
  /**
   * <code>.ImageContent content = 8;</code>
   * @return Whether the content field is set.
   */
  @Override
  public boolean hasContent() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * <code>.ImageContent content = 8;</code>
   * @return The content.
   */
  @Override
  public ImageContent getContent() {
    return content_ == null ? ImageContent.getDefaultInstance() : content_;
  }
  /**
   * <code>.ImageContent content = 8;</code>
   */
  @Override
  public ImageContentOrBuilder getContentOrBuilder() {
    return content_ == null ? ImageContent.getDefaultInstance() : content_;
  }

  public static final int ISANIMATED_FIELD_NUMBER = 9;
  private boolean isAnimated_ = false;
  /**
   * <code>bool isAnimated = 9;</code>
   * @return The isAnimated.
   */
  @Override
  public boolean getIsAnimated() {
    return isAnimated_;
  }

  public static final int FLEXSETTINGLIST_FIELD_NUMBER = 10;
  private NinePatchSetting flexSettingList_;
  /**
   * <code>.NinePatchSetting FlexSettingList = 10;</code>
   * @return Whether the flexSettingList field is set.
   */
  @Override
  public boolean hasFlexSettingList() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * <code>.NinePatchSetting FlexSettingList = 10;</code>
   * @return The flexSettingList.
   */
  @Override
  public NinePatchSetting getFlexSettingList() {
    return flexSettingList_ == null ? NinePatchSetting.getDefaultInstance() : flexSettingList_;
  }
  /**
   * <code>.NinePatchSetting FlexSettingList = 10;</code>
   */
  @Override
  public NinePatchSettingOrBuilder getFlexSettingListOrBuilder() {
    return flexSettingList_ == null ? NinePatchSetting.getDefaultInstance() : flexSettingList_;
  }

  public static final int TEXTSETTINGLIST_FIELD_NUMBER = 11;
  private NinePatchSetting textSettingList_;
  /**
   * <code>.NinePatchSetting TextSettingList = 11;</code>
   * @return Whether the textSettingList field is set.
   */
  @Override
  public boolean hasTextSettingList() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * <code>.NinePatchSetting TextSettingList = 11;</code>
   * @return The textSettingList.
   */
  @Override
  public NinePatchSetting getTextSettingList() {
    return textSettingList_ == null ? NinePatchSetting.getDefaultInstance() : textSettingList_;
  }
  /**
   * <code>.NinePatchSetting TextSettingList = 11;</code>
   */
  @Override
  public NinePatchSettingOrBuilder getTextSettingListOrBuilder() {
    return textSettingList_ == null ? NinePatchSetting.getDefaultInstance() : textSettingList_;
  }

  private byte memoizedIsInitialized = -1;
  @Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    for (int i = 0; i < urlListList_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, urlListList_.getRaw(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
    }
    if (height_ != 0L) {
      output.writeUInt64(3, height_);
    }
    if (width_ != 0L) {
      output.writeUInt64(4, width_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(avgColor_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, avgColor_);
    }
    if (imageType_ != 0) {
      output.writeUInt32(6, imageType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(openWebUrl_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, openWebUrl_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(8, getContent());
    }
    if (isAnimated_ != false) {
      output.writeBool(9, isAnimated_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(10, getFlexSettingList());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(11, getTextSettingList());
    }
    getUnknownFields().writeTo(output);
  }

  @Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    {
      int dataSize = 0;
      for (int i = 0; i < urlListList_.size(); i++) {
        dataSize += computeStringSizeNoTag(urlListList_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getUrlListListList().size();
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
    }
    if (height_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(3, height_);
    }
    if (width_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(4, width_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(avgColor_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, avgColor_);
    }
    if (imageType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(6, imageType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(openWebUrl_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, openWebUrl_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(8, getContent());
    }
    if (isAnimated_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(9, isAnimated_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(10, getFlexSettingList());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(11, getTextSettingList());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @Override
  public boolean equals(final Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof Image)) {
      return super.equals(obj);
    }
    Image other = (Image) obj;

    if (!getUrlListListList()
        .equals(other.getUrlListListList())) return false;
    if (!getUri()
        .equals(other.getUri())) return false;
    if (getHeight()
        != other.getHeight()) return false;
    if (getWidth()
        != other.getWidth()) return false;
    if (!getAvgColor()
        .equals(other.getAvgColor())) return false;
    if (getImageType()
        != other.getImageType()) return false;
    if (!getOpenWebUrl()
        .equals(other.getOpenWebUrl())) return false;
    if (hasContent() != other.hasContent()) return false;
    if (hasContent()) {
      if (!getContent()
          .equals(other.getContent())) return false;
    }
    if (getIsAnimated()
        != other.getIsAnimated()) return false;
    if (hasFlexSettingList() != other.hasFlexSettingList()) return false;
    if (hasFlexSettingList()) {
      if (!getFlexSettingList()
          .equals(other.getFlexSettingList())) return false;
    }
    if (hasTextSettingList() != other.hasTextSettingList()) return false;
    if (hasTextSettingList()) {
      if (!getTextSettingList()
          .equals(other.getTextSettingList())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getUrlListListCount() > 0) {
      hash = (37 * hash) + URLLISTLIST_FIELD_NUMBER;
      hash = (53 * hash) + getUrlListListList().hashCode();
    }
    hash = (37 * hash) + URI_FIELD_NUMBER;
    hash = (53 * hash) + getUri().hashCode();
    hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getHeight());
    hash = (37 * hash) + WIDTH_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getWidth());
    hash = (37 * hash) + AVGCOLOR_FIELD_NUMBER;
    hash = (53 * hash) + getAvgColor().hashCode();
    hash = (37 * hash) + IMAGETYPE_FIELD_NUMBER;
    hash = (53 * hash) + getImageType();
    hash = (37 * hash) + OPENWEBURL_FIELD_NUMBER;
    hash = (53 * hash) + getOpenWebUrl().hashCode();
    if (hasContent()) {
      hash = (37 * hash) + CONTENT_FIELD_NUMBER;
      hash = (53 * hash) + getContent().hashCode();
    }
    hash = (37 * hash) + ISANIMATED_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsAnimated());
    if (hasFlexSettingList()) {
      hash = (37 * hash) + FLEXSETTINGLIST_FIELD_NUMBER;
      hash = (53 * hash) + getFlexSettingList().hashCode();
    }
    if (hasTextSettingList()) {
      hash = (37 * hash) + TEXTSETTINGLIST_FIELD_NUMBER;
      hash = (53 * hash) + getTextSettingList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static Image parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static Image parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static Image parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static Image parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static Image parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static Image parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static Image parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static Image parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static Image parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static Image parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static Image parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static Image parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(Image prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @Override
  protected Builder newBuilderForType(
      BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code Image}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:Image)
      ImageOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return Douyin.internal_static_Image_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return Douyin.internal_static_Image_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              Image.class, Builder.class);
    }

    // Construct using tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getContentFieldBuilder();
        getFlexSettingListFieldBuilder();
        getTextSettingListFieldBuilder();
      }
    }
    @Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      urlListList_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      uri_ = "";
      height_ = 0L;
      width_ = 0L;
      avgColor_ = "";
      imageType_ = 0;
      openWebUrl_ = "";
      content_ = null;
      if (contentBuilder_ != null) {
        contentBuilder_.dispose();
        contentBuilder_ = null;
      }
      isAnimated_ = false;
      flexSettingList_ = null;
      if (flexSettingListBuilder_ != null) {
        flexSettingListBuilder_.dispose();
        flexSettingListBuilder_ = null;
      }
      textSettingList_ = null;
      if (textSettingListBuilder_ != null) {
        textSettingListBuilder_.dispose();
        textSettingListBuilder_ = null;
      }
      return this;
    }

    @Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return Douyin.internal_static_Image_descriptor;
    }

    @Override
    public Image getDefaultInstanceForType() {
      return Image.getDefaultInstance();
    }

    @Override
    public Image build() {
      Image result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @Override
    public Image buildPartial() {
      Image result = new Image(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(Image result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        urlListList_.makeImmutable();
        result.urlListList_ = urlListList_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.uri_ = uri_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.height_ = height_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.width_ = width_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.avgColor_ = avgColor_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.imageType_ = imageType_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.openWebUrl_ = openWebUrl_;
      }
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.content_ = contentBuilder_ == null
            ? content_
            : contentBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.isAnimated_ = isAnimated_;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.flexSettingList_ = flexSettingListBuilder_ == null
            ? flexSettingList_
            : flexSettingListBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.textSettingList_ = textSettingListBuilder_ == null
            ? textSettingList_
            : textSettingListBuilder_.build();
        to_bitField0_ |= 0x00000004;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @Override
    public Builder clone() {
      return super.clone();
    }
    @Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return super.setField(field, value);
    }
    @Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return super.addRepeatedField(field, value);
    }
    @Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof Image) {
        return mergeFrom((Image)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(Image other) {
      if (other == Image.getDefaultInstance()) return this;
      if (!other.urlListList_.isEmpty()) {
        if (urlListList_.isEmpty()) {
          urlListList_ = other.urlListList_;
          bitField0_ |= 0x00000001;
        } else {
          ensureUrlListListIsMutable();
          urlListList_.addAll(other.urlListList_);
        }
        onChanged();
      }
      if (!other.getUri().isEmpty()) {
        uri_ = other.uri_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (other.getHeight() != 0L) {
        setHeight(other.getHeight());
      }
      if (other.getWidth() != 0L) {
        setWidth(other.getWidth());
      }
      if (!other.getAvgColor().isEmpty()) {
        avgColor_ = other.avgColor_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      if (other.getImageType() != 0) {
        setImageType(other.getImageType());
      }
      if (!other.getOpenWebUrl().isEmpty()) {
        openWebUrl_ = other.openWebUrl_;
        bitField0_ |= 0x00000040;
        onChanged();
      }
      if (other.hasContent()) {
        mergeContent(other.getContent());
      }
      if (other.getIsAnimated() != false) {
        setIsAnimated(other.getIsAnimated());
      }
      if (other.hasFlexSettingList()) {
        mergeFlexSettingList(other.getFlexSettingList());
      }
      if (other.hasTextSettingList()) {
        mergeTextSettingList(other.getTextSettingList());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @Override
    public final boolean isInitialized() {
      return true;
    }

    @Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              String s = input.readStringRequireUtf8();
              ensureUrlListListIsMutable();
              urlListList_.add(s);
              break;
            } // case 10
            case 18: {
              uri_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 24: {
              height_ = input.readUInt64();
              bitField0_ |= 0x00000004;
              break;
            } // case 24
            case 32: {
              width_ = input.readUInt64();
              bitField0_ |= 0x00000008;
              break;
            } // case 32
            case 42: {
              avgColor_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000010;
              break;
            } // case 42
            case 48: {
              imageType_ = input.readUInt32();
              bitField0_ |= 0x00000020;
              break;
            } // case 48
            case 58: {
              openWebUrl_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000040;
              break;
            } // case 58
            case 66: {
              input.readMessage(
                  getContentFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000080;
              break;
            } // case 66
            case 72: {
              isAnimated_ = input.readBool();
              bitField0_ |= 0x00000100;
              break;
            } // case 72
            case 82: {
              input.readMessage(
                  getFlexSettingListFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000200;
              break;
            } // case 82
            case 90: {
              input.readMessage(
                  getTextSettingListFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000400;
              break;
            } // case 90
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private com.google.protobuf.LazyStringArrayList urlListList_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    private void ensureUrlListListIsMutable() {
      if (!urlListList_.isModifiable()) {
        urlListList_ = new com.google.protobuf.LazyStringArrayList(urlListList_);
      }
      bitField0_ |= 0x00000001;
    }
    /**
     * <code>repeated string urlListList = 1;</code>
     * @return A list containing the urlListList.
     */
    public com.google.protobuf.ProtocolStringList
        getUrlListListList() {
      urlListList_.makeImmutable();
      return urlListList_;
    }
    /**
     * <code>repeated string urlListList = 1;</code>
     * @return The count of urlListList.
     */
    public int getUrlListListCount() {
      return urlListList_.size();
    }
    /**
     * <code>repeated string urlListList = 1;</code>
     * @param index The index of the element to return.
     * @return The urlListList at the given index.
     */
    public String getUrlListList(int index) {
      return urlListList_.get(index);
    }
    /**
     * <code>repeated string urlListList = 1;</code>
     * @param index The index of the value to return.
     * @return The bytes of the urlListList at the given index.
     */
    public com.google.protobuf.ByteString
        getUrlListListBytes(int index) {
      return urlListList_.getByteString(index);
    }
    /**
     * <code>repeated string urlListList = 1;</code>
     * @param index The index to set the value at.
     * @param value The urlListList to set.
     * @return This builder for chaining.
     */
    public Builder setUrlListList(
        int index, String value) {
      if (value == null) { throw new NullPointerException(); }
      ensureUrlListListIsMutable();
      urlListList_.set(index, value);
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>repeated string urlListList = 1;</code>
     * @param value The urlListList to add.
     * @return This builder for chaining.
     */
    public Builder addUrlListList(
        String value) {
      if (value == null) { throw new NullPointerException(); }
      ensureUrlListListIsMutable();
      urlListList_.add(value);
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>repeated string urlListList = 1;</code>
     * @param values The urlListList to add.
     * @return This builder for chaining.
     */
    public Builder addAllUrlListList(
        Iterable<String> values) {
      ensureUrlListListIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, urlListList_);
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>repeated string urlListList = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearUrlListList() {
      urlListList_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
      bitField0_ = (bitField0_ & ~0x00000001);;
      onChanged();
      return this;
    }
    /**
     * <code>repeated string urlListList = 1;</code>
     * @param value The bytes of the urlListList to add.
     * @return This builder for chaining.
     */
    public Builder addUrlListListBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      ensureUrlListListIsMutable();
      urlListList_.add(value);
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private Object uri_ = "";
    /**
     * <code>string uri = 2;</code>
     * @return The uri.
     */
    public String getUri() {
      Object ref = uri_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        uri_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string uri = 2;</code>
     * @return The bytes for uri.
     */
    public com.google.protobuf.ByteString
        getUriBytes() {
      Object ref = uri_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        uri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string uri = 2;</code>
     * @param value The uri to set.
     * @return This builder for chaining.
     */
    public Builder setUri(
        String value) {
      if (value == null) { throw new NullPointerException(); }
      uri_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>string uri = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearUri() {
      uri_ = getDefaultInstance().getUri();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     * <code>string uri = 2;</code>
     * @param value The bytes for uri to set.
     * @return This builder for chaining.
     */
    public Builder setUriBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      uri_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private long height_ ;
    /**
     * <code>uint64 height = 3;</code>
     * @return The height.
     */
    @Override
    public long getHeight() {
      return height_;
    }
    /**
     * <code>uint64 height = 3;</code>
     * @param value The height to set.
     * @return This builder for chaining.
     */
    public Builder setHeight(long value) {

      height_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 height = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearHeight() {
      bitField0_ = (bitField0_ & ~0x00000004);
      height_ = 0L;
      onChanged();
      return this;
    }

    private long width_ ;
    /**
     * <code>uint64 width = 4;</code>
     * @return The width.
     */
    @Override
    public long getWidth() {
      return width_;
    }
    /**
     * <code>uint64 width = 4;</code>
     * @param value The width to set.
     * @return This builder for chaining.
     */
    public Builder setWidth(long value) {

      width_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 width = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearWidth() {
      bitField0_ = (bitField0_ & ~0x00000008);
      width_ = 0L;
      onChanged();
      return this;
    }

    private Object avgColor_ = "";
    /**
     * <code>string avgColor = 5;</code>
     * @return The avgColor.
     */
    public String getAvgColor() {
      Object ref = avgColor_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        avgColor_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string avgColor = 5;</code>
     * @return The bytes for avgColor.
     */
    public com.google.protobuf.ByteString
        getAvgColorBytes() {
      Object ref = avgColor_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        avgColor_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string avgColor = 5;</code>
     * @param value The avgColor to set.
     * @return This builder for chaining.
     */
    public Builder setAvgColor(
        String value) {
      if (value == null) { throw new NullPointerException(); }
      avgColor_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>string avgColor = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearAvgColor() {
      avgColor_ = getDefaultInstance().getAvgColor();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     * <code>string avgColor = 5;</code>
     * @param value The bytes for avgColor to set.
     * @return This builder for chaining.
     */
    public Builder setAvgColorBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      avgColor_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private int imageType_ ;
    /**
     * <code>uint32 imageType = 6;</code>
     * @return The imageType.
     */
    @Override
    public int getImageType() {
      return imageType_;
    }
    /**
     * <code>uint32 imageType = 6;</code>
     * @param value The imageType to set.
     * @return This builder for chaining.
     */
    public Builder setImageType(int value) {

      imageType_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 imageType = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearImageType() {
      bitField0_ = (bitField0_ & ~0x00000020);
      imageType_ = 0;
      onChanged();
      return this;
    }

    private Object openWebUrl_ = "";
    /**
     * <code>string openWebUrl = 7;</code>
     * @return The openWebUrl.
     */
    public String getOpenWebUrl() {
      Object ref = openWebUrl_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        openWebUrl_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string openWebUrl = 7;</code>
     * @return The bytes for openWebUrl.
     */
    public com.google.protobuf.ByteString
        getOpenWebUrlBytes() {
      Object ref = openWebUrl_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        openWebUrl_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string openWebUrl = 7;</code>
     * @param value The openWebUrl to set.
     * @return This builder for chaining.
     */
    public Builder setOpenWebUrl(
        String value) {
      if (value == null) { throw new NullPointerException(); }
      openWebUrl_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * <code>string openWebUrl = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearOpenWebUrl() {
      openWebUrl_ = getDefaultInstance().getOpenWebUrl();
      bitField0_ = (bitField0_ & ~0x00000040);
      onChanged();
      return this;
    }
    /**
     * <code>string openWebUrl = 7;</code>
     * @param value The bytes for openWebUrl to set.
     * @return This builder for chaining.
     */
    public Builder setOpenWebUrlBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      openWebUrl_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }

    private ImageContent content_;
    private com.google.protobuf.SingleFieldBuilderV3<
        ImageContent, ImageContent.Builder, ImageContentOrBuilder> contentBuilder_;
    /**
     * <code>.ImageContent content = 8;</code>
     * @return Whether the content field is set.
     */
    public boolean hasContent() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     * <code>.ImageContent content = 8;</code>
     * @return The content.
     */
    public ImageContent getContent() {
      if (contentBuilder_ == null) {
        return content_ == null ? ImageContent.getDefaultInstance() : content_;
      } else {
        return contentBuilder_.getMessage();
      }
    }
    /**
     * <code>.ImageContent content = 8;</code>
     */
    public Builder setContent(ImageContent value) {
      if (contentBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        content_ = value;
      } else {
        contentBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     * <code>.ImageContent content = 8;</code>
     */
    public Builder setContent(
        ImageContent.Builder builderForValue) {
      if (contentBuilder_ == null) {
        content_ = builderForValue.build();
      } else {
        contentBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     * <code>.ImageContent content = 8;</code>
     */
    public Builder mergeContent(ImageContent value) {
      if (contentBuilder_ == null) {
        if (((bitField0_ & 0x00000080) != 0) &&
          content_ != null &&
          content_ != ImageContent.getDefaultInstance()) {
          getContentBuilder().mergeFrom(value);
        } else {
          content_ = value;
        }
      } else {
        contentBuilder_.mergeFrom(value);
      }
      if (content_ != null) {
        bitField0_ |= 0x00000080;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.ImageContent content = 8;</code>
     */
    public Builder clearContent() {
      bitField0_ = (bitField0_ & ~0x00000080);
      content_ = null;
      if (contentBuilder_ != null) {
        contentBuilder_.dispose();
        contentBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.ImageContent content = 8;</code>
     */
    public ImageContent.Builder getContentBuilder() {
      bitField0_ |= 0x00000080;
      onChanged();
      return getContentFieldBuilder().getBuilder();
    }
    /**
     * <code>.ImageContent content = 8;</code>
     */
    public ImageContentOrBuilder getContentOrBuilder() {
      if (contentBuilder_ != null) {
        return contentBuilder_.getMessageOrBuilder();
      } else {
        return content_ == null ?
            ImageContent.getDefaultInstance() : content_;
      }
    }
    /**
     * <code>.ImageContent content = 8;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        ImageContent, ImageContent.Builder, ImageContentOrBuilder>
        getContentFieldBuilder() {
      if (contentBuilder_ == null) {
        contentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            ImageContent, ImageContent.Builder, ImageContentOrBuilder>(
                getContent(),
                getParentForChildren(),
                isClean());
        content_ = null;
      }
      return contentBuilder_;
    }

    private boolean isAnimated_ ;
    /**
     * <code>bool isAnimated = 9;</code>
     * @return The isAnimated.
     */
    @Override
    public boolean getIsAnimated() {
      return isAnimated_;
    }
    /**
     * <code>bool isAnimated = 9;</code>
     * @param value The isAnimated to set.
     * @return This builder for chaining.
     */
    public Builder setIsAnimated(boolean value) {

      isAnimated_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     * <code>bool isAnimated = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsAnimated() {
      bitField0_ = (bitField0_ & ~0x00000100);
      isAnimated_ = false;
      onChanged();
      return this;
    }

    private NinePatchSetting flexSettingList_;
    private com.google.protobuf.SingleFieldBuilderV3<
        NinePatchSetting, NinePatchSetting.Builder, NinePatchSettingOrBuilder> flexSettingListBuilder_;
    /**
     * <code>.NinePatchSetting FlexSettingList = 10;</code>
     * @return Whether the flexSettingList field is set.
     */
    public boolean hasFlexSettingList() {
      return ((bitField0_ & 0x00000200) != 0);
    }
    /**
     * <code>.NinePatchSetting FlexSettingList = 10;</code>
     * @return The flexSettingList.
     */
    public NinePatchSetting getFlexSettingList() {
      if (flexSettingListBuilder_ == null) {
        return flexSettingList_ == null ? NinePatchSetting.getDefaultInstance() : flexSettingList_;
      } else {
        return flexSettingListBuilder_.getMessage();
      }
    }
    /**
     * <code>.NinePatchSetting FlexSettingList = 10;</code>
     */
    public Builder setFlexSettingList(NinePatchSetting value) {
      if (flexSettingListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        flexSettingList_ = value;
      } else {
        flexSettingListBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     * <code>.NinePatchSetting FlexSettingList = 10;</code>
     */
    public Builder setFlexSettingList(
        NinePatchSetting.Builder builderForValue) {
      if (flexSettingListBuilder_ == null) {
        flexSettingList_ = builderForValue.build();
      } else {
        flexSettingListBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     * <code>.NinePatchSetting FlexSettingList = 10;</code>
     */
    public Builder mergeFlexSettingList(NinePatchSetting value) {
      if (flexSettingListBuilder_ == null) {
        if (((bitField0_ & 0x00000200) != 0) &&
          flexSettingList_ != null &&
          flexSettingList_ != NinePatchSetting.getDefaultInstance()) {
          getFlexSettingListBuilder().mergeFrom(value);
        } else {
          flexSettingList_ = value;
        }
      } else {
        flexSettingListBuilder_.mergeFrom(value);
      }
      if (flexSettingList_ != null) {
        bitField0_ |= 0x00000200;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.NinePatchSetting FlexSettingList = 10;</code>
     */
    public Builder clearFlexSettingList() {
      bitField0_ = (bitField0_ & ~0x00000200);
      flexSettingList_ = null;
      if (flexSettingListBuilder_ != null) {
        flexSettingListBuilder_.dispose();
        flexSettingListBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.NinePatchSetting FlexSettingList = 10;</code>
     */
    public NinePatchSetting.Builder getFlexSettingListBuilder() {
      bitField0_ |= 0x00000200;
      onChanged();
      return getFlexSettingListFieldBuilder().getBuilder();
    }
    /**
     * <code>.NinePatchSetting FlexSettingList = 10;</code>
     */
    public NinePatchSettingOrBuilder getFlexSettingListOrBuilder() {
      if (flexSettingListBuilder_ != null) {
        return flexSettingListBuilder_.getMessageOrBuilder();
      } else {
        return flexSettingList_ == null ?
            NinePatchSetting.getDefaultInstance() : flexSettingList_;
      }
    }
    /**
     * <code>.NinePatchSetting FlexSettingList = 10;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        NinePatchSetting, NinePatchSetting.Builder, NinePatchSettingOrBuilder>
        getFlexSettingListFieldBuilder() {
      if (flexSettingListBuilder_ == null) {
        flexSettingListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            NinePatchSetting, NinePatchSetting.Builder, NinePatchSettingOrBuilder>(
                getFlexSettingList(),
                getParentForChildren(),
                isClean());
        flexSettingList_ = null;
      }
      return flexSettingListBuilder_;
    }

    private NinePatchSetting textSettingList_;
    private com.google.protobuf.SingleFieldBuilderV3<
        NinePatchSetting, NinePatchSetting.Builder, NinePatchSettingOrBuilder> textSettingListBuilder_;
    /**
     * <code>.NinePatchSetting TextSettingList = 11;</code>
     * @return Whether the textSettingList field is set.
     */
    public boolean hasTextSettingList() {
      return ((bitField0_ & 0x00000400) != 0);
    }
    /**
     * <code>.NinePatchSetting TextSettingList = 11;</code>
     * @return The textSettingList.
     */
    public NinePatchSetting getTextSettingList() {
      if (textSettingListBuilder_ == null) {
        return textSettingList_ == null ? NinePatchSetting.getDefaultInstance() : textSettingList_;
      } else {
        return textSettingListBuilder_.getMessage();
      }
    }
    /**
     * <code>.NinePatchSetting TextSettingList = 11;</code>
     */
    public Builder setTextSettingList(NinePatchSetting value) {
      if (textSettingListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        textSettingList_ = value;
      } else {
        textSettingListBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     * <code>.NinePatchSetting TextSettingList = 11;</code>
     */
    public Builder setTextSettingList(
        NinePatchSetting.Builder builderForValue) {
      if (textSettingListBuilder_ == null) {
        textSettingList_ = builderForValue.build();
      } else {
        textSettingListBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     * <code>.NinePatchSetting TextSettingList = 11;</code>
     */
    public Builder mergeTextSettingList(NinePatchSetting value) {
      if (textSettingListBuilder_ == null) {
        if (((bitField0_ & 0x00000400) != 0) &&
          textSettingList_ != null &&
          textSettingList_ != NinePatchSetting.getDefaultInstance()) {
          getTextSettingListBuilder().mergeFrom(value);
        } else {
          textSettingList_ = value;
        }
      } else {
        textSettingListBuilder_.mergeFrom(value);
      }
      if (textSettingList_ != null) {
        bitField0_ |= 0x00000400;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.NinePatchSetting TextSettingList = 11;</code>
     */
    public Builder clearTextSettingList() {
      bitField0_ = (bitField0_ & ~0x00000400);
      textSettingList_ = null;
      if (textSettingListBuilder_ != null) {
        textSettingListBuilder_.dispose();
        textSettingListBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.NinePatchSetting TextSettingList = 11;</code>
     */
    public NinePatchSetting.Builder getTextSettingListBuilder() {
      bitField0_ |= 0x00000400;
      onChanged();
      return getTextSettingListFieldBuilder().getBuilder();
    }
    /**
     * <code>.NinePatchSetting TextSettingList = 11;</code>
     */
    public NinePatchSettingOrBuilder getTextSettingListOrBuilder() {
      if (textSettingListBuilder_ != null) {
        return textSettingListBuilder_.getMessageOrBuilder();
      } else {
        return textSettingList_ == null ?
            NinePatchSetting.getDefaultInstance() : textSettingList_;
      }
    }
    /**
     * <code>.NinePatchSetting TextSettingList = 11;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        NinePatchSetting, NinePatchSetting.Builder, NinePatchSettingOrBuilder>
        getTextSettingListFieldBuilder() {
      if (textSettingListBuilder_ == null) {
        textSettingListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            NinePatchSetting, NinePatchSetting.Builder, NinePatchSettingOrBuilder>(
                getTextSettingList(),
                getParentForChildren(),
                isClean());
        textSettingList_ = null;
      }
      return textSettingListBuilder_;
    }
    @Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:Image)
  }

  // @@protoc_insertion_point(class_scope:Image)
  private static final Image DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new Image();
  }

  public static Image getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Image>
      PARSER = new com.google.protobuf.AbstractParser<Image>() {
    @Override
    public Image parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static com.google.protobuf.Parser<Image> parser() {
    return PARSER;
  }

  @Override
  public com.google.protobuf.Parser<Image> getParserForType() {
    return PARSER;
  }

  @Override
  public Image getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

